package cn.dw.mm.activiti;

import java.util.List;

import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinition;

public class ProcessDefinitionUtils {
	
	/**
	 * 通过名称查找流程定义
	 * */
	public static List<ProcessDefinition> findProcessDefinitionByName(
			RepositoryService repositoryService, 
			String processDefinitionName) {
		return repositoryService.createProcessDefinitionQuery().processDefinitionName(processDefinitionName).list();
	}
	
	
}
